var domContainer = document.querySelector('.container');
var domImgArea = document.querySelector('.container .imgarea');
var domIndicatorArea = document.querySelector('.container .indicatorarea');
var domPrev = document.querySelector('.container .prevarea .btnarea');
var domNext = document.querySelector('.container .nextarea .btnarea');

var imgArr = ['./img/Wallpaper1.jpg', './img/Wallpaper2.jpg', './img/Wallpaper3.jpg', './img/Wallpaper4.jpg', './img/Wallpaper5.jpg'];
//初始化
function init() {
  loadBannerImg();
}

function loadBannerImg() {
    for (var i = 0; i < imgArr.length; i++) {
        var img = new Image();
        img.src = imgArr[i];
        img.onload = function () {
            var img = document.createElement('img');
            img.src = this.src;
    }
}

init();
